package cn.git.demo.pojo;

import java.io.Serializable;
import java.util.Date;

/**
 *
 *
 * 商品实体类
 *
 */
public class Product implements Serializable {
    /**
     *
     * CREATE TABLE `bbs_product` (
     `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'ID或商品编号',
     `brand_id` bigint(20) DEFAULT NULL COMMENT '品牌ID',
     `name` varchar(255) NOT NULL COMMENT '商品名称',
     `weight` float(8,2) DEFAULT NULL COMMENT '重量 单位:克',
     `is_new` tinyint(1) DEFAULT NULL COMMENT '是否新品:0:旧品,1:新品',
     `is_hot` tinyint(1) DEFAULT NULL COMMENT '是否热销:0,否 1:是',
     `is_commend` tinyint(1) DEFAULT NULL COMMENT '推荐 1推荐 0 不推荐',
     `is_show` tinyint(1) DEFAULT NULL COMMENT '上下架:0否 1是',
     `img_url` longtext COMMENT '商品图片集',
     `is_del` tinyint(1) DEFAULT NULL COMMENT '是否删除:0删除,1,没删除',
     `description` longtext COMMENT '商品描述',
     `package_list` longtext COMMENT '包装清单',
     `colors` varchar(255) DEFAULT NULL COMMENT '颜色集',
     `sizes` varchar(255) DEFAULT NULL COMMENT '尺寸集',
     `create_time` datetime DEFAULT NULL COMMENT '添加时间',
     PRIMARY KEY (`id`),
     KEY `brand_id` (`brand_id`)
     ) ENGINE=InnoDB AUTO_INCREMENT=442 DEFAULT CHARSET=utf8 COMMENT='商品';
     */
    private Long id;
    private Long brand_id;
    private String name;
    private Float weight;
    private Integer isNew;
    private Integer isHot;
    private Integer isCommend;
    private Integer isShow;
    private String imgUrl;
    private Integer isDel;
    private String description;
    private String package_list;
    private Date createTime;

    private static final long serialVersionUID= 1l;

    @Override
    public String toString() {
        return "Product{" +
                "id=" + id +
                ", brand_id=" + brand_id +
                ", name='" + name + '\'' +
                ", weight=" + weight +
                ", isNew=" + isNew +
                ", isHot=" + isHot +
                ", isCommend=" + isCommend +
                ", isShow=" + isShow +
                ", imgUrl='" + imgUrl + '\'' +
                ", isDel=" + isDel +
                ", description='" + description + '\'' +
                ", package_list='" + package_list + '\'' +
                ", createTime=" + createTime +
                '}';
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getBrand_id() {
        return brand_id;
    }

    public void setBrand_id(Long brand_id) {
        this.brand_id = brand_id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Float getWeight() {
        return weight;
    }

    public void setWeight(Float weight) {
        this.weight = weight;
    }

    public Integer getIsNew() {
        return isNew;
    }

    public void setIsNew(Integer isNew) {
        this.isNew = isNew;
    }

    public Integer getIsHot() {
        return isHot;
    }

    public void setIsHot(Integer isHot) {
        this.isHot = isHot;
    }

    public Integer getIsCommend() {
        return isCommend;
    }

    public void setIsCommend(Integer isCommend) {
        this.isCommend = isCommend;
    }

    public Integer getIsShow() {
        return isShow;
    }

    public void setIsShow(Integer isShow) {
        this.isShow = isShow;
    }

    public String getImgUrl() {
        return imgUrl;
    }

    public void setImgUrl(String imgUrl) {
        this.imgUrl = imgUrl;
    }

    public Integer getIsDel() {
        return isDel;
    }

    public void setIsDel(Integer isDel) {
        this.isDel = isDel;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getPackage_list() {
        return package_list;
    }

    public void setPackage_list(String package_list) {
        this.package_list = package_list;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
}
